/*
 * Created on 2009-11-16
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.database;

import java.sql.ResultSet;

public class CqmsRole {
	
	public boolean getRoleid(String roleMenu,String roleid){
		String fstr[]=roleMenu.split(",");
		for(int i=0;i<fstr.length;i++){
			if(fstr[i].equals(roleid)){
			return false;	
			}
		}
	 return true;
	}
	public String getRoleName(String roleid){
		DataBase db2=new DataBase();
		ResultSet rst=null;
		String sql="";
	return "";
	}
	
	public static void main(String []args){
		boolean isH=new CqmsRole().getRoleid("1,2,3,4,","3");
		System.out.println(isH);
	}

}
